package com.ruoyi.wlgl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物联设备对象 t_iot_device
 * 
 * @author ruoyi
 * @date 2023-04-10
 */
public class TIotDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 网关ID */
    @Excel(name = "网关ID")
    private String gatewayId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 设备类型 1-电表 2-水表 3-人脸闸机 */
    @Excel(name = "设备类型 1-电表 2-水表 3-人脸闸机")
    private String deviceType;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备状态 0-有效 1-无效 */
    @Excel(name = "设备状态 0-有效 1-无效")
    private String deviceStatus;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String deviceLocation;

    /** 充值次数 */
    @Excel(name = "充值次数")
    private Integer rechargeCount;

    /** 设备剩余金额 */
    @Excel(name = "设备剩余金额")
    private BigDecimal deviceBalance;

    /** 设备剩余量 */
    @Excel(name = "设备剩余量")
    private String deviceSurplus;

    /** 总量 */
    @Excel(name = "总量")
    private BigDecimal totle;

    /** 设备ip */
    @Excel(name = "设备ip")
    private String deviIp;

    /** 设备用户名 */
    @Excel(name = "设备用户名")
    private String deviUsername;

    /** 设备密码 */
    @Excel(name = "设备密码")
    private String deviPassword;

    /** 设备sdk端口号 */
    @Excel(name = "设备sdk端口号")
    private String deviSdkPort;

    /** 设备出入类型:1进入闸机，2出去闸机 */
    @Excel(name = "设备出入类型:1进入闸机，2出去闸机")
    private String deviAccessType;

    /** 常开时段 */
    @Excel(name = "常开时段")
    private String deviOpenAlwaysTimeIndex;

    /** 常闭时段 */
    @Excel(name = "常闭时段")
    private String deviCloseAlwaysTimeIndex;

    /** 空间位置 */
    @Excel(name = "空间位置")
    private Long bsloId;

    /** 设备其他信息 */
    @Excel(name = "设备其他信息")
    private String deviOtherInfo;

    /** 剩余量单位 */
    @Excel(name = "剩余量单位")
    private String surplusUnit;

    /** 水表阀门状态 0-开阀门 1-关阀门 */
    @Excel(name = "水表阀门状态 0-开阀门 1-关阀门")
    private String sluiceStatus;

    /** 电表总状态 0-拉闸 1-合闸 */
    @Excel(name = "电表总状态 0-拉闸 1-合闸")
    private String electricityStatus;

    /** 电表A路状态 0-拉闸 1-合闸 */
    @Excel(name = "电表A路状态 0-拉闸 1-合闸")
    private String electricityAStatus;

    /** 电表B路状态 0-拉闸 1-合闸 */
    @Excel(name = "电表B路状态 0-拉闸 1-合闸")
    private String electricityBStatus;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGatewayId(String gatewayId) 
    {
        this.gatewayId = gatewayId;
    }

    public String getGatewayId() 
    {
        return gatewayId;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceStatus(String deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus() 
    {
        return deviceStatus;
    }
    public void setDeviceLocation(String deviceLocation) 
    {
        this.deviceLocation = deviceLocation;
    }

    public String getDeviceLocation() 
    {
        return deviceLocation;
    }
    public void setRechargeCount(Integer rechargeCount) 
    {
        this.rechargeCount = rechargeCount;
    }

    public Integer getRechargeCount() 
    {
        return rechargeCount;
    }
    public void setDeviceBalance(BigDecimal deviceBalance) 
    {
        this.deviceBalance = deviceBalance;
    }

    public BigDecimal getDeviceBalance() 
    {
        return deviceBalance;
    }
    public void setDeviceSurplus(String deviceSurplus) 
    {
        this.deviceSurplus = deviceSurplus;
    }

    public String getDeviceSurplus() 
    {
        return deviceSurplus;
    }
    public void setTotle(BigDecimal totle) 
    {
        this.totle = totle;
    }

    public BigDecimal getTotle() 
    {
        return totle;
    }
    public void setDeviIp(String deviIp) 
    {
        this.deviIp = deviIp;
    }

    public String getDeviIp() 
    {
        return deviIp;
    }
    public void setDeviUsername(String deviUsername) 
    {
        this.deviUsername = deviUsername;
    }

    public String getDeviUsername() 
    {
        return deviUsername;
    }
    public void setDeviPassword(String deviPassword) 
    {
        this.deviPassword = deviPassword;
    }

    public String getDeviPassword() 
    {
        return deviPassword;
    }
    public void setDeviSdkPort(String deviSdkPort) 
    {
        this.deviSdkPort = deviSdkPort;
    }

    public String getDeviSdkPort() 
    {
        return deviSdkPort;
    }
    public void setDeviAccessType(String deviAccessType) 
    {
        this.deviAccessType = deviAccessType;
    }

    public String getDeviAccessType() 
    {
        return deviAccessType;
    }
    public void setDeviOpenAlwaysTimeIndex(String deviOpenAlwaysTimeIndex) 
    {
        this.deviOpenAlwaysTimeIndex = deviOpenAlwaysTimeIndex;
    }

    public String getDeviOpenAlwaysTimeIndex() 
    {
        return deviOpenAlwaysTimeIndex;
    }
    public void setDeviCloseAlwaysTimeIndex(String deviCloseAlwaysTimeIndex) 
    {
        this.deviCloseAlwaysTimeIndex = deviCloseAlwaysTimeIndex;
    }

    public String getDeviCloseAlwaysTimeIndex() 
    {
        return deviCloseAlwaysTimeIndex;
    }
    public void setBsloId(Long bsloId) 
    {
        this.bsloId = bsloId;
    }

    public Long getBsloId() 
    {
        return bsloId;
    }
    public void setDeviOtherInfo(String deviOtherInfo) 
    {
        this.deviOtherInfo = deviOtherInfo;
    }

    public String getDeviOtherInfo() 
    {
        return deviOtherInfo;
    }
    public void setSurplusUnit(String surplusUnit) 
    {
        this.surplusUnit = surplusUnit;
    }

    public String getSurplusUnit() 
    {
        return surplusUnit;
    }
    public void setSluiceStatus(String sluiceStatus) 
    {
        this.sluiceStatus = sluiceStatus;
    }

    public String getSluiceStatus() 
    {
        return sluiceStatus;
    }
    public void setElectricityStatus(String electricityStatus) 
    {
        this.electricityStatus = electricityStatus;
    }

    public String getElectricityStatus() 
    {
        return electricityStatus;
    }
    public void setElectricityAStatus(String electricityAStatus) 
    {
        this.electricityAStatus = electricityAStatus;
    }

    public String getElectricityAStatus() 
    {
        return electricityAStatus;
    }
    public void setElectricityBStatus(String electricityBStatus) 
    {
        this.electricityBStatus = electricityBStatus;
    }

    public String getElectricityBStatus() 
    {
        return electricityBStatus;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gatewayId", getGatewayId())
            .append("deviceCode", getDeviceCode())
            .append("deviceType", getDeviceType())
            .append("deviceName", getDeviceName())
            .append("deviceStatus", getDeviceStatus())
            .append("deviceLocation", getDeviceLocation())
            .append("rechargeCount", getRechargeCount())
            .append("deviceBalance", getDeviceBalance())
            .append("deviceSurplus", getDeviceSurplus())
            .append("totle", getTotle())
            .append("deviIp", getDeviIp())
            .append("deviUsername", getDeviUsername())
            .append("deviPassword", getDeviPassword())
            .append("deviSdkPort", getDeviSdkPort())
            .append("deviAccessType", getDeviAccessType())
            .append("deviOpenAlwaysTimeIndex", getDeviOpenAlwaysTimeIndex())
            .append("deviCloseAlwaysTimeIndex", getDeviCloseAlwaysTimeIndex())
            .append("bsloId", getBsloId())
            .append("deviOtherInfo", getDeviOtherInfo())
            .append("surplusUnit", getSurplusUnit())
            .append("sluiceStatus", getSluiceStatus())
            .append("electricityStatus", getElectricityStatus())
            .append("electricityAStatus", getElectricityAStatus())
            .append("electricityBStatus", getElectricityBStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .toString();
    }
}
